Skip to content

perf(parser): make Kind::Eof (default) 0#11014

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-13-perf_parser_make_kind_eof_default_0
May 14, 2025
Merged

perf(parser): make Kind::Eof (default) 0#11014
graphite-app[bot] merged 1 commit intomainfrom
05-13-perf_parser_make_kind_eof_default_0

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 13, 2025

Follow-on after #10933. Make u8 value of Kind::Eof (Kind::default()) be 0. This makes Token::default() a little cheaper, as all bits of default Token are 0.

@github-actions github-actions bot added A-parser Area - Parser C-performance Category - Solution not expected to change functional behavior, only performance labels May 13, 2025
Copy link
Member Author

overlookmotel commented May 13, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq
Copy link

codspeed-hq bot commented May 13, 2025

CodSpeed Instrumentation Performance Report

Merging #11014 will not alter performance

Comparing 05-13-perf_parser_make_kind_eof_default_0 (a711ff4) with main (8956870)

Summary

✅ 36 untouched benchmarks

@graphite-app graphite-app bot changed the base branch from 05-13-refactor_lexer_harden_safety_of_transmute to graphite-base/11014 May 14, 2025 01:16
@graphite-app graphite-app bot force-pushed the graphite-base/11014 branch from 3f7dad1 to c0b68eb Compare May 14, 2025 01:22
@graphite-app graphite-app bot force-pushed the 05-13-perf_parser_make_kind_eof_default_0 branch from 4517605 to 656857f Compare May 14, 2025 01:22
@graphite-app graphite-app bot changed the base branch from graphite-base/11014 to main May 14, 2025 01:23
@graphite-app graphite-app bot force-pushed the 05-13-perf_parser_make_kind_eof_default_0 branch from 656857f to 63ff506 Compare May 14, 2025 01:23
@overlookmotel overlookmotel force-pushed the 05-13-perf_parser_make_kind_eof_default_0 branch from 63ff506 to 5eeaac4 Compare May 14, 2025 10:35
@overlookmotel
Copy link
Member Author

+1% on lexer benchmarks. +0.4% - +0.2% on parser benchmarks.

@overlookmotel overlookmotel marked this pull request as ready for review May 14, 2025 10:53
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label May 14, 2025
Copy link
Member

Boshen commented May 14, 2025

Merge activity

Follow-on after #10933. Make `u8` value of `Kind::Eof` (`Kind::default()`) be 0. This makes `Token::default()` a little cheaper, as all bits of default `Token` are 0.
@graphite-app graphite-app bot force-pushed the 05-13-perf_parser_make_kind_eof_default_0 branch from 5eeaac4 to a711ff4 Compare May 14, 2025 11:20
@graphite-app graphite-app bot merged commit a711ff4 into main May 14, 2025
26 checks passed
@graphite-app graphite-app bot deleted the 05-13-perf_parser_make_kind_eof_default_0 branch May 14, 2025 11:26
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-parser Area - Parser C-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants